home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / midi / gfft.lha / gfft-2.03 / source / gfft-2.03-source.lha / messages.h < prev    next >
C/C++ Source or Header  |  1996-01-02  |  17KB  |  542 lines

  1. /***************************************************************************
  2.  *                Copyright (C) 1994  Charles P. Peterson                  *
  3.  *           4007 Enchanted Sun, San Antonio, Texas 78244-1254             *
  4.  *              Email: Charles_P_Peterson@fcircus.sat.tx.us                *
  5.  *                                                                         *
  6.  *                This is free software with NO WARRANTY.                  *
  7.  *            See gfft.c, or run program itself, for details.              *
  8.  *                    Support is available for a fee.                      *
  9.  ***************************************************************************
  10.  *
  11.  * Program:     gfft--General FFT analysis
  12.  * File:        messages.h
  13.  * Purpose:     message strings
  14.  * Author:      Charles Peterson (CPP)
  15.  * History:     6-August-1993 CPP; Created.
  16.  *              6-July-1994 CPP (0.73); Changed 'About' message
  17.  *              10-July-1994 CPP (1.00); First major release version
  18.  *              27-July-1994 CPP (1.03); added 'f' FPU designation
  19.  *              10-Feb-1995 CPP (1.35); Updated help & question messages
  20.  *
  21.  * Comments:    In case an alternate language is desired for messages,
  22.  *              only this include should have to be modified.
  23.  *
  24.  *              Only spaces should be used for whitespace (no tabs).
  25.  *              Linefeeds are normally provided by output functions.
  26.  *              
  27.  *                                  *** IMPORTANT ***
  28.  *              ** This is only intended to be included by message.c **
  29.  *              ** The purpose is to locate all strings in one file. **
  30.  */
  31.  
  32. /*
  33.  * the first two definitions are modified for BETA version
  34.  */
  35.  
  36. const char NameAuthor[] = "GFFT Version CPP-";
  37. /* const char NameAuthor[] = "GFFT Version BETA-"; */
  38.  
  39. static const char version[] = {'$','V','E','R',':',' ','C','P','P','/',
  40.  
  41. /*static const char version[] = {'$','V','E','R',':',' ','B','E','T','A','/', */
  42.  
  43. 'G','F','F','T',' '}; /* no NULL here; terminated later */
  44.  
  45. /* The version number is variable length x.y */
  46. const char VersionData[] = {'2','.','0','3'};  /* no NULL here */
  47.  
  48. #ifdef _M68881
  49. static const char fast_char = {'f'};  /* no NULL here */
  50. #endif
  51.  
  52. static const char filler_space[] = {' '}; /* no NULL here */
  53. #ifdef AMIGA
  54. /* const char CompileDate[] = __AMIGADATE__;  /* bug after October! */
  55. const char CompileDate[] = "(2.1.96)";  /* NULL terminated */
  56. #else
  57. const char CompileDate[] = "(x.x.96)";  /* NULL terminated */
  58. #endif
  59.  
  60. const char Copyright[] = {'C','o','p','y','r','i','g','h','t',' '};
  61.   /* no NULL here; terminated later */
  62.  
  63. #ifdef AMIGA
  64. const char CopyrightSymbol[] = {(unsigned char) 169};
  65. #else
  66. const char CopyrightSymbol[] = {'(','c',')'};
  67. #endif
  68.  
  69. static const char copyright_conclusion[] = " 1996 Charles P. Peterson";
  70.   /* Null terminated here */
  71.  
  72. char *HelpPathList[] = HELP_PATH_LIST;  /* From Xdef.h where X is system */
  73.  
  74. /*
  75.  * Author strings is specially formatted for output by author() and
  76.  *   about_message ()...
  77.  * Blocks of up to 6 text strings, separated by one line containing one
  78.  *   blank.
  79.  */
  80. char *Author_Strings[] = {
  81. " ",
  82. "Author:   Charles P. Peterson",
  83. "Email:    Charles_P_Peterson@fcircus.sat.tx.us",
  84. "Address:  4007 Enchanted Sun, San Antonio, TX 78244-1254 USA",
  85. " ",
  86. "Cash donations in ANY amount will help support this product.",
  87. "$10 minimum is suggested.  For $25 you can get an FPU optimized",
  88. "binary and notification of the next release (see README).",
  89. " ",
  90. NULL};
  91.  
  92. static char *banner_strings[] = {
  93.  
  94. /* IMPORTANT!
  95.  * Do not modify the following in any way that would obscure the
  96.  * copyright notice and information about the ABSOLUTELY NO WARRANTY and
  97.  * the (NO) WARRANTY and COPYING commands.  To do so might be a violation
  98.  * of the GNU General Public License under which this software is
  99.  * distributed.
  100.  */
  101.  
  102. "\n",
  103. "         There is ABSOLUTELY NO WARRANTY; enter NOWARRANTY for details",
  104. "         You may give out copies of GFFT; enter COPYING for conditions",
  105. "             Please support this product--order services or donate",
  106. "         For further information and the author\'s address, enter ABOUT",
  107. "                              Enter HELP for help",
  108. " ",
  109. NULL};
  110.  
  111. static char *help_prolog_strings[] = {
  112. "The following commands and options are available in this program:",
  113. " ",
  114. NULL};
  115.  
  116. static char *help_epilog_strings[] = {
  117. " ",
  118. "Any command may be abbreviated to its shortest unambiguous string.",
  119. "Commands are not case sensitive in this program.",
  120. " ",
  121. "For help on any particular command, enter: HELP <command name>",
  122. "For list of additional help topics, enter: HELP TOPICS",
  123. "For an introduction to GFFT, enter: HELP INTRODUCTION",
  124. " ",
  125. "Hint: to begin processing after desired parameters have been modified,",
  126. "enter the OK command.  For example:",
  127. " ",
  128. "    gfft> READ mysample",
  129. "    gfft> BINS 1024",
  130. "    gfft> OK",
  131. " ",
  132. "This would read the sample file mysample, compute an FFT with 1024 bins,",
  133. "write the spectrum to a temporary file, and plot it."
  134. " ",
  135. NULL};
  136.  
  137. static char *question_message_strings[] = {
  138. " ",
  139. "Batch Format: GFFT [READ <filename>] [WRITE <filename>] [{<option>}]",
  140. "If no arguments are given, Workbench GUI mode is entered.",
  141. "To begin CLI interactive mode, use: GFFT CLI",
  142. "For a complete list of options/commands, use: GFFT HELP.",
  143. " ",
  144. NULL};
  145.  
  146. /*
  147.  * Workbench strings
  148.  */
  149. char *Please_Select_Read_File_S =
  150. "Please select a Sample File (above)...";
  151.  
  152. char *Set_Parameters_Then_Ok_S =
  153.  "Set parameters, then press OK...";
  154.  
  155. char *Attempting_to_Perform_FFT_S =
  156. "Performing FFT analysis...";
  157.  
  158. char *Set_Sampling_Rate_S =
  159. "Now set sampling rate (file is unformatted)...";
  160.  
  161. char *Verify_Sampling_Rate_S = 
  162. "Verify sampling rate, then set parameters...";
  163.  
  164. char *Got_It_S = 
  165. "Got it.";
  166.  
  167. char *Read_Requester_Title =
  168. "Select READ File for GFFT";
  169.  
  170. char *Dialog_Window_Title =
  171. "GFFT Dialog Window";
  172.  
  173. char *Copyrt_Req_Prolog =
  174. "To help support GFFT, please make a donation to the author.";
  175.  
  176. char *Author_Info_Button =
  177. "Press here for information about the author and services...";
  178.  
  179. char *No_Warranty_Button =
  180. "There is ABSOLUTELY NO WARRANTY.  Press here for details...";
  181.  
  182. char *Sharing_Rights_Button =
  183. "You may give out copies of GFFT.  Press here for conditions...";
  184.  
  185. char *Idea_Contributor_Button =
  186. "Many have contributed to the ideas behind this program...";
  187.  
  188. char *Code_Contributor_Button =
  189. "Code has been contributed by...";
  190.  
  191. char *Processing_Calibration_S =
  192. "Processing Calibration File...";
  193.  
  194. /*
  195.  * Error message strings
  196.  * String must NOT include null!
  197.  * Each should be a one-liner if possible
  198.  * Follow style here, or modify all to different style
  199.  */
  200.  
  201. #define NO_SUCH_COMMAND_S \
  202. "No such command!"
  203.  
  204. #define OUT_OF_MEMORY_S \
  205. "Insufficient memory to complete operation!  Try fewer bins."
  206.  
  207. #define REQUESTER_STACK_OVERFLOW_S \
  208. "Requester stack overflow!"
  209.  
  210. #define UNSUPPORTED_COMMAND_S \
  211. "Command not currently supported on this system!"
  212.  
  213. #define UNDOCUMENTED_ERROR_S \
  214. "An error for which no description is available has occurred!"
  215.  
  216. #define MISSING_ARGUMENT_S \
  217. "Missing argument!"
  218.  
  219. #define BAD_ARGUMENT_S \
  220. "Invalid argument!"
  221.  
  222. #define ALREADY_IN_CLI_MODE_S \
  223. "Already in CLI interactive mode!"
  224.  
  225. #define BAD_NAME_S \
  226. "Invalid name!"
  227.  
  228. #define AMBIGUOUS_COMMAND_S \
  229. "Ambiguous command!"
  230.  
  231. #define BACKUP_CREATED_S \
  232. "Warning.  Backup file created to prevent overwriting ONCE ONLY."
  233.  
  234. #define OUTPUT_BACKUP_FAILURE_S \
  235. "Unable to backup existing file!  File not opened for output!"
  236.  
  237. #define BACKUP_OVERWRITTEN_S \
  238. "Warning.  Previous backup file is now being overwritten by new backup file."
  239.  
  240. #define CANT_CREATE_OUTPUT_FILE_S \
  241. "Unable to open spectrum file for output!"
  242.  
  243. #define CANT_CLEANUP_BATCH_PLOT_S \
  244. "Warning.  Can't cleanup temporary files if plotting from batch mode."
  245.  
  246. #define CANT_PLOT_FROM_STDOUT_S \
  247. "Unable to plot if data written to stdout!"
  248.  
  249. #define CANT_RE_OUTPUT_S \
  250. "Can't re-output!  Need to do OK first."
  251.  
  252. #define CANT_RE_PLOT_S \
  253. "Can't re-plot!  Need to do OK first."
  254.  
  255. #define CANT_OPEN_INPUT_FILE_S \
  256. "Unable to open input file!  No such file!"
  257.  
  258. #define SCANNING_FILE_S \
  259. "Scanning input file to determine number of bins..."
  260.  
  261. #define NO_DATA_PRESENT_S \
  262. "Input file does not contain any data!"
  263.  
  264. #define PADDING_TAILEND_S \
  265. "Warning.  Padding last section of data with zeros."
  266.  
  267. #define IGNORING_TAILEND_S \
  268. "Warning.  Ignoring last partial segment of data."
  269.  
  270. #define INSUFFICIENT_DATA_S \
  271. "Insufficient data to analyze with specified parameters."
  272.  
  273. #define AMBIGUOUS_ARGUMENT_S \
  274. "Ambiguous argument!"
  275.  
  276. #define NO_SUCH_ARGUMENT_S \
  277. "No such argument!"
  278.  
  279. #define NO_NUMERICAL_S \
  280. "Numerical Recipes code must be purchased from Cambridge University Press!"
  281.  
  282. #define INVALID_NUMBER_S \
  283. "Invalid number!"
  284.  
  285. #define FILENAME_TOO_LONG_S \
  286. "Filename is too long!"
  287.  
  288. #define NO_RATE_SPECIFIED_S \
  289. "No sampling rate has been specified!  No analysis can be performed!"
  290.  
  291. #define NO_READ_FILE_S \
  292. "No sample file has been specified!"
  293.  
  294. #define UNSUPPORTED_FORMAT_S \
  295. "This file appears to an unsupported format type!"
  296.  
  297. #define STARTUP_FILE_ERROR_S \
  298. "Error in .gfft startup file!"
  299.  
  300. #define TOOLTYPE_ERROR_S \
  301. "Error or warning from tooltype or startup command!  See GFFT Console!"
  302.  
  303. #define CORRUPT_IFF_S \
  304. "The IFF structure of this file appears to be corrupted!"
  305.  
  306. #define CORRUPT_AVR_S \
  307. "The AVR format of this file appears to be corrupted!"
  308.  
  309. #define COMPRESSION_NOT_SUPPORTED_S \
  310. "The compression used in this file is not currently supported!"
  311.  
  312. #define ONESHOT_BUT_NOT_8SVX_S \
  313. "OneshotOnly or RepeatOnly are only supported for IFF 8SVX files!"
  314.  
  315. #define FORMAT_NOT_OK_S \
  316. "BAD FORMAT!  The input file cannot be processed!"
  317.  
  318. #define NOT_ENOUGH_FRAMES_S \
  319. "There are not enough frames in input file to be processed as specified!"
  320.  
  321. #define OCTAVE_NOT_PRESENT_S \
  322. "The specified octave is not present in input file!"
  323.  
  324. #define CORRUPT_AIFF_S \
  325. "The format of this AIFF file is corrupt or unsupported by this program!"
  326.  
  327. #define CORRUPT_AIFC_S \
  328. "The format of this AIFC file is corrupt or unsupported by this program!"
  329.  
  330. #define NO_WRITE_FILE_S \
  331. "No valid output file has been specified!"
  332.  
  333. #define DB_OF_ZERO_S \
  334. "Cannot compute dB of a zero value!"
  335.  
  336. #define NO_FILE_REQSTR_S \
  337. "File selector requires AmigaDOS 2.0+!  Enter file name into name box instead."
  338.  
  339. #define SPEC_CHANNEL_UNAVAIL_S \
  340. "Specified channel is not available!"
  341.  
  342. #define INVALID_BINS_SPEC_S \
  343. "Invalid bins specification!"
  344.  
  345. #define INVALID_INTERLEAVE_SPEC_S \
  346. "Invalid interleave specification!"
  347.  
  348. #define CANT_CREATE_PLOTTER_FILE_S \
  349. "Unable to write command file for plotter in ram!"
  350.  
  351. #define CANT_CREATE_MORE_COMMAND_FILE_S \
  352. "Unable to write command file for more command in ram!"
  353.  
  354. #define CANT_CREATE_MESSAGE_FILE_S \
  355. "Unable to write file with message strings!"
  356.  
  357. #define HELP_MESSAGE_UNAVAILABLE_S \
  358. "No help is available for that topic!"
  359.  
  360. #define HELP_FILE_NOT_FOUND_S \
  361. "Help file has not been properly installed!"
  362.  
  363. #define CANT_OPEN_INTUITION_S \
  364. "Unable to open Intuition library!  Where is your ROM anyway?"
  365.  
  366. #define WINDOW_OPEN_FAILED_S \
  367. "Unable to open GFFT window on default screen with system default font!"
  368.  
  369. #define INVALID_SMOOTHING_SPEC_S \
  370. "Invalid smoothing segment specification!"
  371.  
  372. #define INVALID_TIMESEG_PARAMETERS_S \
  373. "Invalid Time Segment Parameters!"
  374.  
  375. #define MISSING_TIMESEG_PARAMETERS_S \
  376. "Incomplete Time Segment Parameters!"
  377.  
  378. #define INVALID_ROTATION_SPEC_S \
  379. "Invalid X or Z rotation specified!"
  380.  
  381. #define CHANGED_FORMAT_DEP_VALUE_S \
  382. "Warning.  Changed inaccessible invalid format dependent value(s)."
  383.  
  384. #define INVALID_CALIBRATION_FILE_S \
  385. "Invalid line in calibration file!  Unable to use calibration file!"
  386.  
  387. #define MORE_STRING "Enter <RETURN> for more; Enter Q <RETURN> to quit: "
  388. #define NO_MORE_CHAR_1 'Q'
  389. #define NO_MORE_CHAR_2 'q'
  390.  
  391.  
  392. /*
  393.  * Message strings for 'settings' command
  394.  */
  395.  
  396. #define SAMPLING_RATE_S \
  397. "The sampling rate is "  /* Note, number follows in separate printf */
  398.  
  399. #define NUMERICAL_RECIPES_USED_S \
  400. "The fft code from Numerical Recipes will be used.\n"
  401.  
  402. #define AMPLITUDE_SPECTRUM_S \
  403. "An amplitude spectrum analysis will be performed.\n"
  404.  
  405. #define POWER_SPECTRUM_S \
  406. "A power spectrum analysis will be performed.\n"
  407.  
  408. #define FFT_S \
  409. "An FFT will be performed producing complex output data.\n"
  410.  
  411. #define MEAN_NORMALIZED_S \
  412. "The spectrum will be normalized to mean values.\n"
  413.  
  414. #define SUMMED_S \
  415. "The summed spectral bin values will be output.\n"
  416.  
  417. #define DEFAULT_BINS_S \
  418. "The number of positive frequency bins will be determined by data count.\n"
  419.  
  420. #define BINS_S \
  421. "%ld positive frequency bins will be used.\n"
  422.  
  423. #define RECTANGLE_WINDOWS_S \
  424. "Rectangle windows will be applied to input data segments.\n"
  425.  
  426. #define TRIANGLE_WINDOWS_S \
  427. "Triangle windows will be applied to input data segments.\n"
  428.  
  429. #define HAMMING_WINDOWS_S \
  430. "Hamming windows will be applied to input data segments.\n"
  431.  
  432. #define BLACKMAN_HARRIS_74DB_WINDOWS_S \
  433. "Blackman-Harris 74dB windows will be applied to input data segments.\n"
  434.  
  435. #define BLACKMAN_HARRIS_92DB_WINDOWS_S \
  436. "Blackman-Harris 92dB windows will be applied to input data segments.\n"
  437.  
  438. #define HANN_WINDOWS_S \
  439. "Hann windows will be applied to input data segments.\n"
  440.  
  441. #define PARZEN_WINDOWS_S \
  442. "Parzen windows will be applied to input data segments.\n"
  443.  
  444. #define WELCH_WINDOWS_S \
  445. "Welch windows will be applied to input data segments.\n"
  446.  
  447. #define OVERLAP_S \
  448. "Overlapping data segments will be used as much as possible.\n"
  449.  
  450. #define NO_OVERLAP_S \
  451. "Data segments will not overlap.\n"
  452.  
  453. #define INTERLEAVE_S \
  454. "Data segments will be interleaved.\n"
  455.  
  456. #define PINK_S \
  457. "Pink weighting (* Frequency) will be applied to the output.\n"
  458.  
  459. #define MAX_FREQUENCY_S \
  460. "Results for frequencies above %g will not be reported.\n"
  461.  
  462. #define MIN_FREQUENCY_S \
  463. "Results for frequencies below %g will not be reported.\n"
  464.  
  465. #define KEYBOARD_INPUT_S \
  466. "Input data will be read from keyboard.\n"
  467.  
  468. #define INPUT_FILENAME_S \
  469. "Input file is %s\n"
  470.  
  471. #define STARTBYTE_S \
  472. "%ld bytes will be skipped from start of file.\n"
  473.  
  474. #define OUTPUT_SCREEN_S \
  475. "Output results will be displayed on screen.\n"
  476.  
  477. #define OUTPUT_FILENAME_S \
  478. "Output file is %s\n"
  479.  
  480. /*
  481.  * Other messages from settings.c
  482.  */
  483.  
  484. #define BINS_SELECTED_S \
  485. "0 or non-negative power of 2 required.  %lu bins selected."
  486.  
  487. /*
  488.  * Messages from okspectm.c
  489.  */
  490.  
  491. #define BINS_DETERMINED_S \
  492. "%lu data frames available; Using %lu positive frequency bins."
  493.  
  494. /*
  495.  * Information messages
  496.  * [moved to gfft.help]
  497.  */
  498.  
  499. /*
  500.  * The following may not be modified without violating the copyright terms!
  501.  */
  502.  
  503. static char *no_warranty_strings[] = {
  504. "                NO WARRANTY",
  505. " ",
  506. "  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY",
  507. "FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN",
  508. "OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES",
  509. "PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED",
  510. "OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF",
  511. "MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS",
  512. "TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE",
  513. "PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,",
  514. "REPAIR OR CORRECTION.",
  515. " ",
  516. "  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING",
  517. "WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR",
  518. "REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,",
  519. "INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING",
  520. "OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED",
  521. "TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY",
  522. "YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER",
  523. "PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE",
  524. "POSSIBILITY OF SUCH DAMAGES.",
  525. NULL};
  526.  
  527. static char *copying_unavailable_strings[] = {
  528. " ",
  529. "Unable to read file named COPYING!",
  530. "The file named COPYING should have been put in an appropriate place during",
  531. "the installation of this program.  The GNU General Public License is",
  532. "described by that file.  Please locate the file COPYING from your original",
  533. "GFFT distribution, and copy it to a suitable directory as described in the",
  534. "INSTALL file for your system.  If you no longer have the files from your",
  535. "original distribution, you may obtain a copy of the GNU General Public",
  536. "License from the Free Software Foundation, Inc., 675 Mass Ave,",
  537. "Cambridge, MA 02139 USA.  Please do not ask them any other questions about",
  538. "this program.  For information about this program, contact the author,",
  539. "whose address is displayed by the ABOUT command.",
  540. " ",
  541. NULL};
  542.